<?php $usuario_logado = $usuario[0];?>
    <?php echo validation_errors('<div class="error">', '</div>'); ?>
    
    <div id="esquerda">
        <p><?php echo img(array("src" => "img/icon/arrow.png","class" => "arrow", "width" => "16", "height" => "16")); ?> Dica que talvez voce ache interesante</p>
        
        <div class="dicas">
            <?php echo img(array('src' => 'upload/thumbs/' . $usuario_logado->avatar, 'alt' => $usuario_logado->username, 'title' => $usuario_logado->username, 'width' => '30', 'height' => '30'));?>
            <h5>Aline - ha 2 horas</h5>
            <p class="txt">Vai rolar lual hoje no Gold Mar com promocao de cerveja, <a href="#">[+]</a></p>
        </div>
        
         <div class="dicas">
            <?php echo img(array('src' => 'upload/thumbs/' . $usuario_logado->avatar, 'alt' => $usuario_logado->username, 'title' => $usuario_logado->username, 'width' => '30', 'height' => '30'));?>
            <h5>Stanlei - ha alguns estantes</h5>
            <p class="txt">Hoje tem happy hour de Bohemia na cervejaria oficial, com <a href="#">[+]</a></p>
        </div>
        
         <div class="dicas">
            <?php echo img(array('src' => 'upload/thumbs/' . $usuario_logado->avatar, 'alt' => $usuario_logado->username, 'title' => $usuario_logado->username, 'width' => '30', 'height' => '30'));?>
            <h5>Capetinha do amor - ha 1 hora</h5>
            <p class="txt">Hoje vou fazer uma festinha em casa quem quer vim?</p>
        </div>
        
        <hr/>
        
        <p><?php echo img(array("src" => "img/icon/arrow.png","class" => "arrow", "width" => "16", "height" => "16")); ?>Talvez voce tenha respostas</p>
        
         <div class="dicas">
            <?php echo img(array('src' => 'upload/thumbs/' . $usuario_logado->avatar, 'alt' => $usuario_logado->username, 'title' => $usuario_logado->username, 'width' => '30', 'height' => '30'));?>
            <h5>Aline - ha 2 horas</h5>
            <p class="txt">Qual melhor lugar para um jantar a dois em Belem?</p>
        </div>
        
         <div class="dicas">
            <?php echo img(array('src' => 'upload/thumbs/' . $usuario_logado->avatar, 'alt' => $usuario_logado->username, 'title' => $usuario_logado->username, 'width' => '30', 'height' => '30'));?>
            <h5>Aline - ha 2 horas</h5>
            <p class="txt">O que tem rolado no circuito alternativo de cinema em Belem? Qual a pedida?</p>
        </div>
        
    </div>
    
    <div id="conteudo">
        
        <div class="bar">
            <?php include("menu_dashboard_view.php"); ?>
            <h2>Novidades</h2>
        </div>
        <div class="clear"></div>
        
        <div class="timeline">
            <?php
            $imgSeguir = array('src' => 'img/remove.png', 'alt' => 'Remover', 'title' => 'Deixar de Acompanhar Perfil');
            $imgMsg = array('src' => 'img/email.png', 'alt' => 'Mensagem', 'title' => 'Enviar Mensagem');
            if(!isset($print)){ 
                $count =  count($usuarioSeguido);
                for($i = 0; $count > $i; $i++):
                    $usuario    = element('usuarioPerfil', $usuarioSeguido[$i]);
                    $usuario = $usuario[0];
                    $idsDicas   = element('idsDicas', $usuarioSeguido[$i]);
                    $dicas       = element('dicas', $usuarioSeguido[$i]);
                    if($idsDicas != array())
                    {
                        foreach ($dicas as $key => $value):
                            $imgConf = array('src' => 'upload/thumbs/' . $usuario->avatar, 'alt' => $usuario->username, 'title' => $usuario->username, 'width' => '60', 'height' => '60');
                            ?>
                            <div id="dica">
                                <div class="avatar">
                                    <?php if($usuario->avatar) { ?>
                                        <?php echo anchor('usuario/profile/' . $usuario->idUsuario, img($imgConf)) ; ?>
                                    <?php }else{?>
                                        <?php echo anchor('usuario/profile/' . $usuario->idUsuario, img(array('src' => 'img/default_avatar.gif', 'alt' => $usuario->username, 'title' => $usuario->username, 'width' => '60', 'height' => '60'))); ?>
                                    <?php } ?>
                            </div>

                            <div class="descricao">
                                <h5 class="name"><?php echo anchor('usuario/timelineVisitanteView/' . $usuario->idUsuario, $usuario->username, array("class" => "name")) ; ?> :: Ha <?php echo $value['tempo'] ?></h5>
                                <p><?php echo anchor('/dica/index/' . $value['dica']->idDica . '/' . $usuario->idUsuario, $value['dica']->descricao); ?></p>
                            </div>
                                
                            <div class="acoes">    
                                
                                <div class="compartilhar">
                                    <?php $url = 'dica/Legal/' . $value['dica']->idDica . '/' . $usuario->idUsuario;  $icon = "16"?>
                                    <ul>
                                        <li><a id="Legal<?php echo $value['dica']->idDica?>" href="javascript:void[0];" onclick="abrirPag('<?php echo base_url(); ?>index.php/dica/legal/<?php echo $value['dica']->idDica . '/' . $usuario->idUsuario; ?>', 'Legal<?php echo $value['dica']->idDica; ?>');" ><?php echo img(array('src' => 'img/icon-acoes/like.png','alt' => $value['countLegal'], 'width' => $icon , 'height' => $icon ,'title' => $value['countLegal'])); ?></a></li>
                                        <li><a id="Vou<?php echo $value['dica']->idDica?>" href="javascript:void[0];" onclick="abrirPag('<?php echo base_url(); ?>index.php/dica/euVou/<?php echo $value['dica']->idDica . '/' . $usuario->idUsuario; ?>', 'Vou<?php echo $value['dica']->idDica; ?>');" ><?php echo img(array('src' => 'img/icon-acoes/go.png','alt' => $value['countVou'], 'width' => $icon , 'height' => $icon, 'title' => $value['countVou'])); ?></a></li>
                                        <li><?php echo anchor('dica/mural/' . $value['dica']->idDica . '/' . $usuario->idUsuario, img(array('src' => 'img/icon-acoes/mural.png','alt' => "Mural", 'width' => $icon, 'height' => $icon, 'title' => "Mural"))) ?></li>
                                        <li><a href="javascript: void [0]" onclick="<?php echo "javascript:toggle('" . $value['dica']->idDica . "')";?>"><?php echo img(array('src' => 'img/icon-acoes/share.png','alt' => "Compartilhar", 'width' => $icon , 'height' => $icon, 'title' => "Compartilhar")); ?></a></li>
                                    </ul>
                                </div>
                            </div>
                                
                            <div id="<?php echo $value['dica']->idDica;?>" class="redes_sociais" >
                                <?php $imgFacebook  = array('src' => 'img/facebook.png', 'alt' => 'Facebook', 'title' => 'Facebook', 'width' => '30', 'height' => '30'); 
                                       $imgTwitter = array('src' => 'img/twitter.png', 'alt' => 'Twitter', 'title' => 'Twitter', 'width' => '30', 'height' => '30');
                                       $url = urlencode(base_url() . "index.php/dica/index/" . $value['dica']->idDica . "/" . $usuario->idUsuario);?>
                                <a href="javascript: void[0]" onclick="window.open('http://www.facebook.com/share.php?u=<?php echo $url?>','ventanacompartir', 'toolbar=0, status=0, width=650, height=450');"><?php echo img($imgFacebook); ?></a>
                                <a href="javascript: void[0]" onclick="window.open('http://twitter.com/share?text=<?php echo substr($value['dica']->descricao, 0, 99); ?> on Hintweek','ventanacompartir', 'toolbar=0, status=0, width=650, height=450');" class="twitter-share-text" data-url="<?php echo $url; ?>"><?php echo img($imgTwitter);?></a>
                            </div>
                                    
                        </div>
                        <?php
                        endforeach;
                    }
                endfor;
            }
            else
            {
               echo $print;
            }
            ?>
        </div>
        
    <div class="clear"></div>
    
</div>
<div id="direita">
    <div class="avatar">
            <?php if($usuario_logado->avatar){?>
                <span><?php echo $usuario_logado->username; ?></span>
                <img src="<?php echo base_url();?>upload/thumbs/<?php echo $usuario_logado->avatar;?>" alt="<?php echo $usuario_logado->username ?>" />
                
            <?php }else{?>
                <img src="<?php echo base_url();?>img/default_avatar.gif" alt="Avatar"/><?php echo $usuario_logado->username; ?>
            <?php } ?>   
                <hr/>
                <p><?php echo img(array("src" => "img/icon/arrow.png","class" => "arrow", "width" => "16", "height" => "16")); ?> Você Acompanha <?php echo $seguidos['count']; ?> </p>
                <ul>
                    <?php foreach($seguidos['info'] as $row): $row = $row[0];?>
                        <li><?php echo img(array("src" => "upload/thumbs/" . $row->avatar,"title" => $row->username, "width" => "20", "height" => "20")); ?></li>
                    <?php endforeach; ?>
                </ul>
                <br/>
                <hr/>
                <p><?php echo img(array("src" => "img/icon/arrow.png","class" => "arrow", "width" => "16", "height" => "16")); ?> <?php echo $seguidores['count']; ?> te acompanham</p>
                <ul>
                    <?php foreach($seguidores['info'] as $row): $row = $row[0];?>
                        <li><?php echo img(array("src" => "upload/thumbs/" . $row->avatar,"title" => $row->username, "width" => "20", "height" => "20")); ?></li>
                    <?php endforeach; ?>
                </ul>
                
                <br/>
                <hr/>
                <p><?php echo img(array("src" => "img/icon/arrow.png","class" => "arrow", "width" => "16", "height" => "16")); ?> Seus termos mais utilizados.</p>
                <div id="tagcloud" class="tagcloud">
                  Image converter. 
                  Image converter. 
                  Image resizer. 
                  Ico to png. 
                  Png to jpg. 
                  Jpg to png. 
                  Jpg to png. 
                  Bmp to jpg. 
                  Jpg to bmp. 
                  Jpg to gif. 
                  Gif to jpg. 
                  Png to gif. 
                  Gif to png. 
                  Online. 
                  Online. 
                  Free. 
                  Free. 
                </div>

    </div>
</div>
